<script>
import Common from "@/mixins/order/commonbg.js";
import OrderService from "@/api/order/OrderService.js";
import PPMForm from "@/crm3.0part7-ppm/core/ppmForm.vue";
export default {
  name: "mstp10460050",
  mixins: [PPMForm, Common],
  data() {
    return {
      //MSTP	SDH	正常变更	地址变更	需求单
      // proName: 'MSTP'
    };
  },
  async mounted() {
    await this.initCommon();
    this.formData["10460374-141000174"].isshow = false;
    this.formData["10460375-141000174"].isshow = false;
    //集团受理时
    var orgId = this.user.orgId;
    if (orgId == "1944640") {
      this.formData["10460373-100014235"].isshow = true; //提供路由图 显示
    } else {
      this.formData["10460373-100014235"].value = "";
      this.formData["10460373-100014235"].isshow = false; //提供路由图 隐藏
    }
  },

  computed: {},
  methods: {
    //端口类型改变
    portTypeA() {
      // 80050062014  rj45   80050062009 fe-rj45
      if (
        this.formData["10460374-100013204"].value == "80050062014" ||
        this.formData["10460374-100013204"].value == "80050062009"
      ) {
        this.formData["10460374-141000174"].isshow = true;
      } else {
        this.formData["10460374-141000174"].isshow = false;
        this.formData["10460374-141000174"].value = "";
      }
    },
    portTypeB() {
      if (
        this.formData["10460375-100013204"].value == "80050062014" ||
        this.formData["10460375-100013204"].value == "80050062009"
      ) {
        this.formData["10460375-141000174"].isshow = true;
      } else {
        this.formData["10460375-141000174"].isshow = false;
        this.formData["10460375-141000174"].value = "";
      }
    },
    
    isModContactLimit() {
      if(this.formData["10460373-142000765"].value=='1'){
        this.SetRequired({ attrName:'合同终止日期', formkey:'10460373-142002037', reqName:'empty', reqStatus:true});
      }else{
        this.SetRequired({ attrName:'合同终止日期', formkey:'10460373-142002037', reqName:'empty', reqStatus:false});
      }
    },
  },
};
</script>